No route matches {:controller=>"welcome", :action=>"contact"}
Posted
by
jade
on Stack Overflow
See other posts from Stack Overflow
or by jade
Published on 2012-10-14T09:32:52Z
Indexed on
2012/10/14
9:36 UTC
Read the original article
Hit count: 251
I'm new to rails so it may sound quite naive.I'm getting this error
No route matches {:controller=>"welcome", :action=>"contact"}
Here is my routes.rb
root :to => 'welcome#index'
Here is my controller
class WelcomeController < ApplicationController
def index
redirect_to :action => :contact
end
end
And i have a contact.html.erb in my app/view/.What am i doing wrong?
© Stack Overflow or respective owner